package com.transaction.manage.model.dto;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "interface_field")
public class InterfaceField implements Serializable {
    private Integer id;

    @Column(name = "interface_Code")
    private String interfaceCode;

    @Column(name = "col_Code")
    private Integer colCode;

    @Column(name = "col_En_Name")
    private String colEnName;

    @Column(name = "col_Cn_Name")
    private String colCnName;

    @Column(name = "col_Type")
    private String colType;

    @Column(name = "col_Length")
    private Integer colLength;

    @Column(name = "col_Decimal")
    private Integer colDecimal;

    @Column(name = "col_Required")
    private Integer colRequired;

    @Column(name = "col_Dict")
    private String colDict;

    @Column(name = "col_Rule")
    private String colRule;

    @Column(name = "default_Value")
    private String defaultValue;

    private static final long serialVersionUID = 1L;

    public InterfaceField() {
    }

    public InterfaceField(String interfaceCode) {
        this.interfaceCode = interfaceCode;
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return interface_Code
     */
    public String getInterfaceCode() {
        return interfaceCode;
    }

    /**
     * @param interfaceCode
     */
    public void setInterfaceCode(String interfaceCode) {
        this.interfaceCode = interfaceCode;
    }

    /**
     * @return col_Code
     */
    public Integer getColCode() {
        return colCode;
    }

    /**
     * @param colCode
     */
    public void setColCode(Integer colCode) {
        this.colCode = colCode;
    }

    /**
     * @return col_En_Name
     */
    public String getColEnName() {
        return colEnName;
    }

    /**
     * @param colEnName
     */
    public void setColEnName(String colEnName) {
        this.colEnName = colEnName;
    }

    /**
     * @return col_Cn_Name
     */
    public String getColCnName() {
        return colCnName;
    }

    /**
     * @param colCnName
     */
    public void setColCnName(String colCnName) {
        this.colCnName = colCnName;
    }

    /**
     * @return col_Type
     */
    public String getColType() {
        return colType;
    }

    /**
     * @param colType
     */
    public void setColType(String colType) {
        this.colType = colType;
    }

    /**
     * @return col_Length
     */
    public Integer getColLength() {
        return colLength;
    }

    /**
     * @param colLength
     */
    public void setColLength(Integer colLength) {
        this.colLength = colLength;
    }

    /**
     * @return col_Decimal
     */
    public Integer getColDecimal() {
        return colDecimal;
    }

    /**
     * @param colDecimal
     */
    public void setColDecimal(Integer colDecimal) {
        this.colDecimal = colDecimal;
    }

    /**
     * @return col_Required
     */
    public Integer getColRequired() {
        return colRequired;
    }

    /**
     * @param colRequired
     */
    public void setColRequired(Integer colRequired) {
        this.colRequired = colRequired;
    }

    /**
     * @return col_Dict
     */
    public String getColDict() {
        return colDict;
    }

    /**
     * @param colDict
     */
    public void setColDict(String colDict) {
        this.colDict = colDict;
    }

    /**
     * @return col_Rule
     */
    public String getColRule() {
        return colRule;
    }

    /**
     * @param colRule
     */
    public void setColRule(String colRule) {
        this.colRule = colRule;
    }

    /**
     * @return default_Value
     */
    public String getDefaultValue() {
        return defaultValue;
    }

    /**
     * @param defaultValue
     */
    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", interfaceCode=").append(interfaceCode);
        sb.append(", colCode=").append(colCode);
        sb.append(", colEnName=").append(colEnName);
        sb.append(", colCnName=").append(colCnName);
        sb.append(", colType=").append(colType);
        sb.append(", colLength=").append(colLength);
        sb.append(", colDecimal=").append(colDecimal);
        sb.append(", colRequired=").append(colRequired);
        sb.append(", colDict=").append(colDict);
        sb.append(", colRule=").append(colRule);
        sb.append(", defaultValue=").append(defaultValue);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}